<template>
	<view class="payment-page">
		<view class="info-block" v-for="item in infoList " :key="item.id">
			<view class="rent-info">
				<image :src="imgStorage+'/login/lianzu.png'" class="info-icon" v-if="item.type==1"></image>
				<image :src="imgStorage+'/login/gongzu.png'" class="info-icon" v-else-if="item.type==2"></image>
				<image :src="imgStorage+'/login/zhiguan.png'" class="info-icon" v-else-if="item.type==3"></image>
				<view class="title">{{item.areaName||''}}{{item.streetName||''}}{{item.mphValue||''}}</view>
			</view>
			<view class="rent-item">
				<view class="rent-itme">
					{{item.payYear ? item.payYear + '年' : ''}}{{item.orderType || ''}}
				</view>
				<view class="form-info">
					<view class="form-content">{{item.paymentAmount||'-'}}元</view>
					<view class="iconfont icon-a-jinggao1" @click="navigate('/page_pack/rent_payment/rent_calculator')">
					</view>
				</view>
			</view>
			<view class="time">缴费时间：{{item.payTime||'-'}}</view>
			<view class="btn-item" @click="navigate('/page_pack/my_pages/pay_record/receipt?id='+item.id)">
				<view class="small-btn normal">开具收据</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			infoList: {
				type: Array,
				default: () => []
			}
		},
		mounted() {}
	}
</script>

<style lang="scss" scoped>
	.payment-page {

		.info-block {
			padding: 30rpx;
			background-color: #fff;
			border-radius: 30rpx;
			margin-bottom: 30rpx;

			.rent-info {
				display: flex;
				align-items: center;
				border-bottom: 1px solid #eeeeee;
				padding-bottom: 30rpx;
				margin-bottom: 30rpx;

				.info-icon {
					width: 40rpx;
					height: 40rpx;
					margin-right: 10rpx;
				}

				.title {
					width: calc(100% - 50rpx);
					font-size: 32rpx;
					font-weight: bold;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
				}
			}

			.time {
				font-size: 28rpx;
				margin-bottom: 20rpx;
				color: #767676;
			}

			.rent-item {
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-bottom: 20rpx;

				.rent-itme {
					font-size: 30rpx;
					width: 70%;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;

				}

				.form-info {
					display: flex;
					align-items: center;

					.form-content {
						font-size: 30rpx;
						font-weight: bold;
						margin-right: 10rpx;
					}
				}
			}

			.btn-item {
				display: flex;
				align-items: center;
				justify-content: flex-end;

				.small-btn {
					width: 150rpx;
				}
			}
		}
	}
</style>